on init
    mkdir /efs 0771 radio system
    symlink /dev/block/platform/155a0000.ufs/by-name/RADIO /dev/mbin0
    restorecon /dev/mbin0
    write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 6
    write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 6

on fs
    chown radio system /efs
    chmod 0771 /efs
    chown radio radio sys/devices/virtual/misc/multipdp/waketime
    chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state
    chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state

    # /efs/factory.prop for Dual / Single SIM settings
    chown radio radio /efs/factory.prop
    chmod 0600 /efs/factory.prop

    # For cpefs partition
    mkdir /cpefs 0771 radio system
    wait /dev/block/platform/155a0000.ufs/by-name/CPEFS
    mount ext4 /dev/block/platform/155a0000.ufs/by-name/CPEFS /cpefs nosuid nodev noatime noauto_da_alloc,discard,journal_async_commit,errors=panic
    chown radio system /cpefs
    chmod 0771 /cpefs

on property:ril.clatd.v4-rmnet0=up
    write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet0/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet1=up
    write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet1/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet2=up
    write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet2/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet3=up
    write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet3/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet4=up
    write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet4/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet5=up
    write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet5/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet6=up
    write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet6/queues/rx-0/rps_cpus 2

on property:ril.clatd.v4-rmnet7=up
    write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 4
    write /sys/class/net/v4-rmnet7/queues/rx-0/rps_cpus 2

# SS/DS configuration
on property:ro.multisim.simslotcount=*
   write /sys/module/modem_ctrl_ss310ap/parameters/ds_detect ${ro.multisim.simslotcount}

on property:ro.multisim.simslotcount=1
    setprop persist.radio.multisim.config ss

on property:ro.multisim.simslotcount=2
    setprop persist.radio.multisim.config dsds

service init_baseband /init.baseband.sh
    class boot
    user root
    group root
    seclabel u:r:init:s0
    oneshot


service cpboot-daemon /sbin/cbd -d -tss310 -bm -mm -P platform/155a0000.ufs/by-name/RADIO
    class main
    user root
    group radio cache inet misc audio sdcard_rw log sdcard_r shell

